public class Test {
    public static void main(String[] args) {
        AbstractFactory factory1 = new XiaomiFactory();
        AbstractFactory factory2 = new AppleFactory();
        factory1.getPad().playPad();
        factory2.getPad().playPad();
        factory1.getPhone().playPhone();
        factory2.getPhone().playPhone();
    }
}
